package com.qingzhuge.limiter.exception;

import com.qingzhuge.exception.BaseException;

import static com.qingzhuge.common.HttpCode.LIMITER_PARAMETER_ERROR;

/**
 * @author zeroxiao
 * @date 2019/9/5 15:51
 */
public class RateLimiterParameterException extends BaseException {
    private static final long serialVersionUID = 262154482916259052L;

    public RateLimiterParameterException() {
        super(LIMITER_PARAMETER_ERROR.message());
    }

    public RateLimiterParameterException(String message) {
        super(message);
    }

    @Override
    public int getCode() {
        return LIMITER_PARAMETER_ERROR.value();
    }
}
